lpython list unino

33

1# union of multiple sets shortcut :
    #list(set().union(list........)
2
3
4
5
lst1=[2,3,4]
lst2=[5,6,7]
lst3=[7,4,8]
union=list(set().union(lst1,lst2,lst3))
print("\nThe union of three list is:",union)

Comments

Submit
0 Comments